<template>
  <!-- 推荐专区 -->
  <view class="panel hot">
    <view class="item" v-for="item in hotList" :key="item.id">
      <view class="title">
        <text class="title-text">{{ item.title }}</text>
        <text class="title-desc">{{ item.alt }}</text>
      </view>
      <navigator hover-class="none" :url="`/pages/hot/hot?type=${item.type}`" class="cards">
        <image
          class="image"
          mode="aspectFit"
          v-for="(imgItem, index) in item.pictures"
          :key="index"
          :src="imgItem"
        ></image>
      </navigator>
    </view>
  </view>
</template>

<script setup lang="ts">
import type { Hot } from '@/types/home'

defineProps<{
  hotList: Hot[]
}>()
</script>

<style lang="scss">
@import './styles/HotPanel.scss';
</style>
